package com.wildish.demo.service;

import javax.annotation.Resource;

import org.springframework.stereotype.Service;

import com.wildish.demo.dao.TestRoleMapper;
import com.wildish.demo.ebo.TestRole;

@Service
public class TestRoleService {

	@Resource
	private TestRoleMapper roleDao;
	
	public int updateRole(TestRole updateRole) {
		return this.roleDao.updateByPrimaryKey(updateRole);
	}
	
	public TestRole getRole(Integer id) {
		return this.roleDao.selectByPrimaryKey(id);
	}
}
